<?php
/**
 * RuiNuoCode低代码后台系统 - 团队十多年低代码经验汇集巨献!
 * =========================================================
 * Copy right 2019-2029 张家界瑞诺科技有限公司, 保留所有权利。
 * ----------------------------------------------
 * 官方网址: https://www.ruinuocrm.com
 * =========================================================
 */
namespace app\<app>\controller;
use app\<app>\service\<controller>\Logic as RuinuoLogic;
use think\facade\Request;
use app\common\middleware\Auth;
use app\common\middleware\Power;
use app\common\middleware\Log;

class <ccontroller>
{
    protected $middleware = [Auth::class => [], Power::class => [], Log::class => []];
    /*明细*/
    public function Detail()
    {
        if (Request::isAjax() || Request::isPost()) {
            $RuinuoLogic = new RuinuoLogic();
            $params=input();
            $params['id']='<ID>';
            $data=$RuinuoLogic->Detail($params);
            return BackCode($data['data'], $data['code'], $data['msg']);
        }
        return ViewTpl('<app>/<controller>/form');
    }
    /*修改数据*/
    public function Edit()
    {
        if (Request::isAjax() || Request::isPost()) {
            $RuinuoLogic = new RuinuoLogic();
            $params=input();
            $params['id']='<ID>';
            $data=$RuinuoLogic->Edit($params);
            return BackCode($data['data'], $data['code'], $data['msg']);
        }
        return ViewTpl('<app>/<controller>/form');
    }


}